@import './components/header-dropdown.less';

@header-min-width: 500px;
@app-min-width: 860px;

#app {
  height: 100%;
  min-width: @app-min-width;
}

.ant-layout {
  &  > .ant-pro-fixed-header {
    min-width: @header-min-width;
  }
  & > .ant-pro-multi-tab-wrap-fixed {
    min-width: @header-min-width;
  }
}

.slide-fadein-up-enter-active,
.slide-fadein-up-leave-active {
  transition: opacity 0.3s, transform 0.4s;
}

.slide-fadein-up-enter-from {
  opacity: 0;
  transform: translateY(20px);
}

.slide-fadein-up-leave-to {
  opacity: 0;
  transform: translateY(-20px);
}

.slide-fadein-right-enter-active,
.slide-fadein-right-leave-active {
  transition: opacity 0.3s, transform 0.4s, -webkit-transform 0.4s;
}

.slide-fadein-right-enter-from {
  opacity: 0;
  transform: translateX(-20px);
}

.slide-fadein-right-leave-to {
  opacity: 0;
  transform: translateX(20px);
}

.zoom-fadein-enter-active,
.zoom-fadein-leave-active {
  transition: transform 0.3s, opacity 0.3s ease-in-out;
}

.zoom-fadein-enter-from {
  transform: scale(0.99);
  opacity: 0;
}

.zoom-fadein-leave-to {
  transform: scale(1.01);
  opacity: 0;
}

.fadein-enter-active,
.fadein-leave-active {
  transition: opacity 0.3s ease-in-out !important;
}

.fadein-enter-from,
.fadein-leave-to {
  opacity: 0 !important;
}

@media (max-width: 480px) {
  .pro-components-header-dropdown-index-container {
    width: 100% !important;
  }
  .ant-table {
    width: 100%;
    overflow-x: auto;
  }

  .ant-table-tbody > tr > td,
  .ant-table-tbody > tr > th,
  .ant-table-thead > tr > td,
  .ant-table-thead > tr > th {
    white-space: pre;
  }

  .ant-table-tbody > tr > td > span,
  .ant-table-tbody > tr > th > span,
  .ant-table-thead > tr > td > span,
  .ant-table-thead > tr > th > span {
    display: block;
  }
}

.pb10 {
  padding-bottom: 10px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  border-radius: 0;
  background-color: rgba(0,0,0,.1);
}

::-webkit-scrollbar-track:hover {
  background-color: rgba(0,0,0,.2);
}

::-webkit-scrollbar-thumb {
  border-radius: 0;
  background-color: rgba(0,0,0,.2);
}

.ant-layout-content {
  padding: 4px;
  overflow-y: hidden;
}
